package com.example.qingyiapp.service.manager;

import android.content.Context;

import com.example.qingyiapp.service.entify.IntrodutioBean;
import com.example.qingyiapp.service.entify.Databean;
import com.example.qingyiapp.service.entify.FindChoicenessOneBean;
import com.example.qingyiapp.service.entify.FindChoicenessTwoBean;
import com.example.qingyiapp.service.entify.FindFriend;
import com.example.qingyiapp.service.entify.FindSynamicBean;
import com.example.qingyiapp.service.entify.FindTJBean;
import com.example.qingyiapp.service.entify.FindWaitYouBean;
import com.example.qingyiapp.service.entify.FriendSquareBean;
import com.example.qingyiapp.service.entify.FriendXxBean;
import com.example.qingyiapp.service.netutils.IRetrofit;
import com.example.qingyiapp.service.netutils.Retrofitnetutlis;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv2;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv3;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_msg;

import rx.Observable;

/**
 * @author ：created by 申德丰
 * Create Date ：2019/9/15 10:27
 * Package_Name : QingYiApp
 */
public class DataManager {



    private IRetrofit iRetrofit;

    public DataManager(Context context, String url) {
        iRetrofit= Retrofitnetutlis.getInstance(context,url).getiretrofit();
    }


    public Observable<Databean> getdatamanager(){

        return  iRetrofit.getdatamanager();
    }

    public Observable<JavaBean_lv> getAddress_lv(){

        return  iRetrofit.getAddress_lv();
    }

    public Observable<FriendSquareBean> getfriendsquare(int startidx,int num){

        return  iRetrofit.getfriendsquare(startidx,num);
    }


    public Observable<FindTJBean> getFindRecommendJson(){

        return  iRetrofit.getFindRecommendJson();
    }

    public Observable<JavaBean_lv2> getAddress_lv2(){
        return iRetrofit.getAddress_lv2();
    }

    public Observable<JavaBean_lv3> getAddress_lv3(){
        return iRetrofit.getAddress_lv3();
    }
    public Observable<JavaBean_msg> getAddress_lv4(String pid){
        return iRetrofit.getMsg(pid);
    }

    public Observable<FindChoicenessOneBean> getgetFindChoicenessBean(){

        return  iRetrofit.getFindChoicenessOneBean();
    }

    public Observable<FindChoicenessTwoBean> getFindChoicenessTwoBean(){

        return  iRetrofit.getFindChoicenessTwoBean();
    }


    public Observable<FindFriend> getfindfriend(int startidx, int offset){

        return  iRetrofit.getFindfriend(startidx,offset);
    }

    public Observable<FindWaitYouBean> getWaitYouBean(){

        return  iRetrofit.getFindWaitYouBean();
    }

    public Observable<FindSynamicBean> getFindSynamicBean(){

        return  iRetrofit.getFindDynamicBean();
    }
    public Observable<IntrodutioBean> getIntroductionBean(){

        return  iRetrofit.getIntroductionBean();
    }


    public Observable<FriendXxBean> getfriendxxbean(String uid){

        return  iRetrofit.getfriendxx(uid);
    }

}
